package com.ruoyi.teaching.service.impl;

import com.ruoyi.teaching.domain.TeachingTracking;
import com.ruoyi.teaching.mapper.TeachingTrackingMapper;
import com.ruoyi.teaching.service.ITeachingTrackingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 教学跟踪Service业务层处理
 * 
 * @author thl
 * @date 2024-01-05
 */
@Service
public class TeachingTrackingServiceImpl implements ITeachingTrackingService 
{
    @Autowired
    private TeachingTrackingMapper teachingTrackingMapper;

    /**
     * 查询教学跟踪
     *
     * @param id 教学跟踪主键
     * @return 教学跟踪
     */
    @Override
    public TeachingTracking selectTeachingTrackingById(Long id)
    {
        return teachingTrackingMapper.selectTeachingTrackingById(id);
    }

    /**
     * 查询教学跟踪列表
     * 
     * @param teachingTracking 教学跟踪
     * @return 教学跟踪
     */
    @Override
    public List<TeachingTracking> selectTeachingTrackingList(TeachingTracking teachingTracking)
    {
        return teachingTrackingMapper.selectTeachingTrackingList(teachingTracking);
    }

    /**
     * 新增教学跟踪
     * 
     * @param teachingTracking 教学跟踪
     * @return 结果
     */
    @Override
    public int insertTeachingTracking(TeachingTracking teachingTracking)
    {
        return teachingTrackingMapper.insertTeachingTracking(teachingTracking);
    }

    /**
     * 修改教学跟踪
     * 
     * @param teachingTracking 教学跟踪
     * @return 结果
     */
    @Override
    public int updateTeachingTracking(TeachingTracking teachingTracking)
    {
        return teachingTrackingMapper.updateTeachingTracking(teachingTracking);
    }

    /**
     * 批量删除教学跟踪
     * 
     * @param ids 需要删除的教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteTeachingTrackingByIds(Long[] ids)
    {
        return teachingTrackingMapper.deleteTeachingTrackingByIds(ids);
    }

    /**
     * 删除教学跟踪信息
     * 
     * @param id 教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteTeachingTrackingById(Long id)
    {
        return teachingTrackingMapper.deleteTeachingTrackingById(id);
    }
}
